<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/register-style.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Tour Register</title>
<s:head/>
</head>
<body>
	<div id="wrap">
		<div id = "banner">
		<%@include file="include/banner.jsp" %>	
		</div>
		<div id = "header">
			<div id = "anchor">
				Add Tour
			</div>
			<div id = "menu">
				<%@include file="include/menu.jsp" %>	
			</div>	
		</div>
		
		<div id="content">
			<div id = "register" >
			<s:if test="#session.USER == null">
				<%@include file="include/login.jsp" %>
			</s:if>
			<s:elseif test="#session.USER != null">
				<s:form action="tourRegister" method="post">
					
	    			<s:textfield name="name" key="tourRegister.name" size="30" />
	    			<s:select key="tourRegister.tour" name="tour"
	    				list="#{'1':'Ha Noi-Lang Son','2':'Ha Noi- Ha Long','3':'Ha Noi-Hue','4':'Ha Noi-Da Lat'}">
	    			</s:select>
	    			<s:date name="time" id="timeId" format="dd/MM/yyyy"/>
	    			<s:textfield name="time" key="tourRegister.time" label="Time (dd/mm/yyyy)" value="%{timeId}" size="20"/>
	    			<s:number name="price" id="priceId"/>
	    			<s:textfield name="price" key="tourRegister.price" value="%{priceId}" size="20"/>
	    			<s:submit method="execute" key="tourRegister.register" align="center" cssClass = "submit"/>
	    			<s:if test="hasActionMessages()">
       					<s:actionmessage/>
					</s:if>
				</s:form>
			</s:elseif>
				
			</div>
		</div>
		<div id = "footer">
			<%@include file="include/footer.jsp" %>	
		</div>	
	</div>
</body>
</html>